package com.tf.integrated.service.impl;


import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;
import com.tf.integrated.dao.WarningresultfacelibInfodbtDao;
import com.tf.integrated.entity.WarningresultfacelibInfodbtEntity;
import com.tf.integrated.service.WarningresultfacelibInfodbtService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("warningresultfacelibInfodbtService")
public class WarningresultfacelibInfodbtServiceImpl extends ServiceImpl<WarningresultfacelibInfodbtDao, WarningresultfacelibInfodbtEntity> implements WarningresultfacelibInfodbtService<WarningresultfacelibInfodbtEntity>
{
    public PageUtils<WarningresultfacelibInfodbtEntity> queryPage(Map<String, Object> params)
    {
        EntityWrapperHandle<WarningresultfacelibInfodbtEntity> ew = new EntityWrapperHandle<WarningresultfacelibInfodbtEntity>(params);
        Page<WarningresultfacelibInfodbtEntity> page = this.selectPage(new Query<WarningresultfacelibInfodbtEntity>(params).getPage(),ew);
        page.setTotal(this.selectCount(ew));
        return new PageUtils<WarningresultfacelibInfodbtEntity>(page);
    }

    public List<WarningresultfacelibInfodbtEntity> queryPageByLike(Map<String, Object> params)
    {
        return baseMapper.queryPageByLike(params);
    }
}
